/*
 * $Id: CharacterReputationPageImpl.java 8 2007-12-29 18:54:44Z aaron.day $
 */
package org.crazydays.wowarmory.page;


import java.net.URI;

/**
 * CharacterSheetPage
 */
public class CharacterReputationPageImpl
	extends CharacterSheetPageImpl
{
	/** page url */
	protected final static String PAGE_URL = "/character-reputation.xml";

	/**
	 * CharacterReputationPageImpl constructor.
	 *
	 * @param baseUri Base uri
	 * @param name Name
	 * @param realm Realm
	 */
	public CharacterReputationPageImpl(URI baseUri, String name, String realm)
	{
		super(baseUri, name, realm);
	}

	/**
	 * CharacterReputationPageImpl constructor.
	 *
	 * @param baseUri Base uri
	 * @param name Name
	 * @param realm Realm
	 */
	public CharacterReputationPageImpl(String baseUri, String name, String realm)
	{
		super(baseUri, name, realm);
	}

	/**
	 * Get page uri.
	 *
	 * @return Page uri
	 * @see AbstractPage#getPageUri()
	 */
	public URI getPageUri()
	{
		StringBuffer uri = new StringBuffer();

		// base uri
		uri.append(getBaseUri().toString());

		// page
		uri.append(PAGE_URL);

		// name
		uri.append("?");
		uri.append(getGetParameter(PARAM_NAME, getName()));

		// realm
		uri.append("&");
		uri.append(getGetParameter(PARAM_REALM, getRealm()));

		return URI.create(uri.toString());
	}
}
